package com.example.administrator.ygddriver.message;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.ygddriver.R;

import java.util.List;

public class MessageAdapter extends BaseQuickAdapter<QueryInformationRequestBean.ResultBean, BaseViewHolder> {
    public MessageAdapter(int layoutResId, @Nullable List<QueryInformationRequestBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, QueryInformationRequestBean.ResultBean item) {
        helper.setText(R.id.item_activity_message_title_tv, item.getC_title());
        helper.setText(R.id.item_activity_message_messate_tv, item.getC_keywords());
        helper.setText(R.id.item_activity_message_time_tv, item.getC_release_time());
    }
}

